package com.ruoyi.web.test;

import com.ruoyi.system.domain.Project;
import com.ruoyi.system.service.IProjectService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.util.Date;

@SpringBootTest()
@RunWith(SpringRunner.class)
public class test {
    @Autowired
    private IProjectService projectService;
    @Test
    public void t1() {
        Project project=new Project();
        project.setProjectsId("2");
        project.setProjectsName("1");
        project.setProjectCreateTime(new Date());
        project.setProjectUpdateTime(new Date());
        int i = projectService.insertProject(project);
        System.out.println(i);

    }
}
